<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <!-- 打印一个5*10的【班长牛叉】方阵 -->
    <!-- <script>
      for (var row = 0; row < 5; row++) {
        // 输出10个班长牛叉
        for (var i = 0; i < 10; i++) {
          document.write("班长牛叉" + "&nbsp;&nbsp;");
        }

        // 输出一个换行符
        document.write("<br>")
      }
    </script> -->

    <!-- 输出九九乘法表 -->
    <script>

        // 外层循环出9行
      for (var i = 1; i <= 9; i++) {

        // 第i行输出i列
        for (var j = 1; j <= i; j++) {
          // 每列输出 j * i = value
          document.write(j + "*" + i + "=" + j * i + "&nbsp;&nbsp;");
        }

        // 输出换行符
        document.write("<br>");

      }
      console.log("game over");
    </script>
  </body>
</html>
